package me.wangcai.trafficpoliceai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import me.wangcai.trafficpoliceai.enums.PermissionEnum;
import me.wangcai.trafficpoliceai.mapper.UserMapper;
import me.wangcai.trafficpoliceai.model.ResponseInfo;
import me.wangcai.trafficpoliceai.model.entity.User;
import me.wangcai.trafficpoliceai.utils.Md5Util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

public interface IUserService extends IService<User> {

    User login(String username, String password);

    ResponseInfo getUserList(int page, int amount);

    boolean editUser(int id, String password, String number, String mail, PermissionEnum permission);
    User getUserByName(String name);
    boolean register(User user);

    User getUserById(int id);

    ResponseInfo filterUser(Map<String,String> filterMap);

}
